package com.czxy.domain;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/1/29
 */
@Table(name = "user_management")
@Data
@ToString
public class User {
    /*
    * CREATE TABLE `user_management` (
  `uid` int(11) NOT NULL AUTO_INCREMENT,
  `uname` varchar(32) DEFAULT NULL,
  `gender` int(11) DEFAULT NULL,
  `iphone` varchar(32) DEFAULT NULL,
  `typeid` int(11) DEFAULT NULL,
  `idnumber` varchar(32) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8
    * */
    @Id
    private Integer uid;
    private String uname;
    private String upassword;
    private Integer gender;
    private String iphone;
    private Integer typeid; //护照id
    private String idnumber;
    private Integer state;

    private CertificateType certificateType; //护照类型
}
